package com.ys.enume.flow;

public class YspDefLinkEnum {
	
	public enum CondResult {
		NO("否", 0),
		YES("是", 1);
		public String name;
		public Integer value;

		private CondResult(String name, Integer value) {
			this.name = name;
			this.value = value;
		}
		
		public static Integer getValue(String name) {
			if (name == null) {
				return null;
			} else {
				for (CondResult e : CondResult.values()) {
					if (name.equals(e.name)) {
						return e.value;
					}
				}
			}
			return null;
		}
	}
}
